Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue reporter fails to report when sandbox is enabled #157368

Merged
merged 1 commit into from Aug 6, 2022

Conversation

bpasero
Copy link
Member

@bpasero bpasero commented Aug 6, 2022

I do not really understand how the issue reporter was working so far, but it looks like all of the IssueReporterData is not stored into the IssueReporterModel so I would assume many of the properties in an issue are actually wrong, for example restricted mode, etc.

I only noticed this because my new property isSandboxed was not working.

@TylerLeonhardt maybe you have an idea or overview why the issue reporter is broken like this?

@bpasero bpasero enabled auto-merge (squash) August 6, 2022 07:35
@bpasero bpasero self-assigned this Aug 6, 2022
@bpasero bpasero added the issue-reporter Issue reporter widget issues label Aug 6, 2022
@bpasero bpasero added this to the August 2022 milestone Aug 6, 2022
@bpasero
Copy link
Member Author

bpasero commented Aug 6, 2022

Super confusing, it seems properties have to go through an update call? For example restricted mode is not passed in initially but then here:

private updateRestrictedMode(restrictedMode: boolean) {
this.issueReporterModel.update({ restrictedMode });
}

Who came up with this 😱

@bpasero
Copy link
Member Author

bpasero commented Aug 6, 2022

Looks like some relative recent change in #154209, @TylerLeonhardt can you explain the reasoning?

@bpasero bpasero changed the title issue repoter misses data Issue reporter fails to report when sandbox is enabled Aug 6, 2022
@TylerLeonhardt
Copy link
Member

@bpasero

I'm not sure what the reasoning is as this pattern existed before I owned the issue reporter.

Since the issue reporter has been going through many discussions about its future, I didn't want to make any large refactoring changes so I followed the existing patterns (even though they are confusing) in order to unblock someone.

@bpasero
Copy link
Member Author

bpasero commented Aug 6, 2022

Any objections with my approach?

@bpasero bpasero merged commit e58c66c into main Aug 6, 2022
@bpasero bpasero deleted the ben/agreeable-coral branch August 6, 2022 17:37
joyceerhl pushed a commit that referenced this pull request Aug 10, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Sep 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue-reporter Issue reporter widget issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants